﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="Order_OrderClear" Codebehind="OrderClear.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页</title>
<style type="text/css">
fieldset {width:96%;}
select {margin:0;padding:0;}
body{padding:0; margin:0; background-color:#ffffff; text-align:center; font: "宋体"; font-size:12px;}
a:visited{text-decoration:none;color:slategray;}
a:hover{text-decoration:underline;color:slategray;}
a:link{text-decoration:none;color:slategray;}
.juli {margin-top:10px;padding-left:20px;}
.juli1 {margin-top:20px; margin-left:20px; text-align:left;}
.juli2 { margin:5px auto;}
.juli3 { margin-bottom:50px;}
.juli4 {padding-left:20px;padding-top:20px;padding-bottom:10px;background-color:#fef3bb;}
.juli5 {padding:0px; margin:0px;}
.z1{background-color:#e7e7e7; text-align:left; line-height:20px;}
.z2{background-color:#FFFFFF; text-align:left; line-height:20px;}
.input_button {width:52px;height:23px;border:none;cursor:pointer; background:#ffffff url(../Include/Images/bt.gif) no-repeat;}
.input_button1 {width:74px;height:23px;border:none;cursor:pointer; background:#ffffff url(../Include/Images/bt1.gif) no-repeat;}
.input_button2 {width:52px;height:23px;border:none;background:#ffffff url(../Include/Images/bt.gif) no-repeat; padding-top:5px;}
.input_button2 a{color:#000000;}
.input_button2 a:hover{color:#FF3300; text-decoration:underline;}
.input_button3 {width:95px;height:23px;border:none;background:#ffffff url(../Include/Images/bt2.gif) no-repeat;}
.zt1 {padding-left:10px; font-weight:600; color:#000000;}
.zt2 {padding-left:10px;}
.zt3 {text-align:center; font-weight:600; color:#000000;}
.zt4 {text-align:center; color:#000000;}
.zt5 {text-align:left; font-weight:600;}
.zt6 {font-size:14px; font-weight:600;}
.zt7 {text-align:right; color:#000000;}
.zt8 {text-align:right; color:#000000;}
.spmenu { line-height:28px; text-align:center;margin-bottom:10px; border-color:#999999;}
.menu_bg {background-color:#fef3bb; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cf994b 1px solid;}
.menu_bg1 { background-color:#fef3bb; padding-left:20px;padding-top:6px; padding-right:20px;border-bottom:#cf994b 1px solid; height:28px;}
.tb {width: 90%; background-color:#999999;}
.tb1 {width: 90%; background-color:#999999; margin-top:10px;}
.tb2 {width: 1050px; background-color:#999999;}
.left {float:left; clear:right;}
.k1 {float:left;width:90%; background-color:#efefef; border:#999999 1px solid;padding-top:10px;}
.k2 {float:left; width:90%; line-height:28px; margin-top:10px;}
.k3 {float:left; width:90%; line-height:28px; margin-top:10px; padding-bottom:30px; clear:both;}
.btlj1 {background: url(../Include/Images/bt1.gif) no-repeat; width:74px; height:23px;text-align:center; padding-top:5px; font-size:12px; display:inline; float:left;margin-left:5px;}
.btlj1 a{color:#000000; text-decoration:none;}
.btlj1 a:hover{color:#FF3300;text-decoration:underline;}
.hidden{visibility:hidden;}
a.lj {font-size:12px; color:#ff9900; text-decoration:underline;}
a.lj:link {font-size:12px; color:#ff9900; text-decoration:underline;}
a.lj:visited {font-size:12px; color:#ff9900; text-decoration:underline;}
a.lj:hover {color:#ff3300;}
a.lj:active {color:#ff3300;}
.bk_left {border-bottom:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 1px solid;border-top:#999999 0px solid;}
.bk_middle {border-bottom:#999999 1px solid;border-right:#999999 1px solid;border-left:#999999 0px solid;border-top:#999999 0px solid;}
h2 {padding-left:20px;padding-top:10px;margin:0; background: url(../Include/Images/menu_title.gif) repeat-x;height:21px;font-size:14px; font-weight:600;}
.menu_bg3 { background-color:#f5f5f5; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cccccc 1px solid;border-top:#cccccc 1px solid;clear:left;}
</style>
</head>
<body>
    <div align="Justify"><form id="form1" runat="server">
    <h2>货到付款订单结算</h2>
        <div class="menu_bg"><asp:Button ID="btnSubmit" runat="server" CssClass="input_button" Text="保存" OnClick="btnSubmit_Click" />
        <asp:Button ID="btnCancel" runat="server" Text="取消" CssClass="input_button" OnClick="btnCancel_Click" /></div>
    <div class="juli">
        <table style="background-color:#999999;" border="0" cellspacing="1" cellpadding="0">
                    <tr class="z2">
                        <td class="zt5" width="120" style="height: 16px">
                            订单编号：</td>
                        <td width="200" style="height: 16px">
                            <asp:Label ID="lblorderid" runat="server" Text=""></asp:Label></td>
                        <td class="zt5" width="120" style="height: 16px">
                            下单日期：</td>
                        <td width="200" style="height: 16px">
                            <asp:Label ID="lblorderrq" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr class="z2">
                        <td class="zt5" style="height: 16px">
                            关联订单：</td>
                        <td style="height: 16px">
                            <asp:HyperLink ID="HyperLink1" runat="server" Text=""></asp:HyperLink>
                            </td>   
                        <td class="zt5">
                            锁定：</td>
                        <td>
                            <asp:CheckBox ID="ckbsd" runat="server" Enabled="false" /></td>
                    </tr>
                    <tr class="z2">
                        <td class="zt5" style="height: 16px">
                           会员代码：</td>
                        <td style="height: 16px">
                           <asp:HyperLink ID="lblgmr" runat="server" Text="" ForeColor="#ff9900"></asp:HyperLink></td>
                        <td class="zt5" style="height: 16px">
                            锁定日期：</td>
                        <td style="height: 16px">
                            <asp:Label ID="lblclockrq" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                           会员名称：</td>
                        <td>
                           <asp:Label ID="Label2" runat="server"  /></td>
                        <td class="zt5">
                            作废：</td>
                        <td>
                            <asp:CheckBox ID="ckbzf" runat="server" Enabled="false" /></td>
                    </tr>
                    <tr class="z2">
                        <td class="zt5" style="height: 22px">
                            订单来源：</td>
                        <td style="height: 22px">
                            <asp:DropDownList ID="ddlddly" Width="100" runat="server" Enabled="False">
                            </asp:DropDownList></td>
                        <td class="zt5" style="height: 22px">
                            作废日期：</td>
                        <td style="height: 22px">
                            <asp:Label ID="lbldeleterq" runat="server" Text=""></asp:Label></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            货到付款：</td>
                        <td>
                            <asp:DropDownList ID="ddljylx" Width="100" runat="server" Enabled="false">
                                <asp:ListItem Text="非货到付款" Value="0"></asp:ListItem>
                                <asp:ListItem Text="货到付款" Value="1"></asp:ListItem>
                            </asp:DropDownList></td>
                        <td class="zt5">
                            客审：</td>
                        <td>
                            <asp:CheckBox ID="ckbks" runat="server" Enabled="false" /></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            配送方式：</td>
                        <td>
                            <asp:DropDownList ID="ddlwlfs" Width="100" runat="server" Enabled="False">
                            </asp:DropDownList></td>
                        <td class="zt5">
                            客审日期：</td>
                        <td>
                            <asp:Label ID="lblksrq" runat="server" Text=""></asp:Label></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            费用性质：</td>
                        <td>
                            <asp:DropDownList ID="ddlfyxz" Width="100" runat="server" Enabled="False">
                                <asp:ListItem Text="卖方承担" Value="001"></asp:ListItem>
                                <asp:ListItem Text="买方承担" Selected="True" Value="002"></asp:ListItem>
                            </asp:DropDownList></td>
                        <td class="zt5">
                            财审：</td>
                        <td>
                            <asp:CheckBox ID="ckbcs" runat="server" Enabled="false" /></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            商品数量：</td>
                        <td>
                            <asp:Label ID="lblsl" runat="server" Text=""></asp:Label></td>

                        <td class="zt5">
                            财审日期：</td>
                        <td>
                            <asp:Label ID="lblcsrq" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            商品金额：</td>
                        <td>
                            <asp:Label ID="lblspje" runat="server" Text=""></asp:Label></td>
                        <td class="zt5">
                            发货：</td>
                        <td>
                            <asp:CheckBox ID="ckbfh" runat="server" Enabled="false" /></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            让利金额：</td>
                        <td>
                            <asp:TextBox ID="txtrlje" CssClass="zt7" Width="94" runat="server" Enabled="False"></asp:TextBox></td>
                        <td class="zt5">
                            发货日期：</td>
                        <td>
                            <asp:Label ID="lblfhrq" runat="server" Text=""></asp:Label></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            物流费用：</td>
                        <td>
                            <asp:TextBox ID="txtwlfy" CssClass="zt7" Width="94" runat="server" Enabled="False"></asp:TextBox></td>
                        <td class="zt5">
                            结算：</td>
                        <td>
                            <asp:CheckBox ID="ckbjs" runat="server" Enabled="false" /></td>

                    </tr>
                    <tr class="z2">
                        <td class="zt5">
                            实际金额：</td>
                        <td>
                            <asp:Label ID="lblorderje" runat="server" Text=""></asp:Label></td>
                        <td class="zt5" style="height: 16px">
                            已结算金额：</td>
                        <td style="height: 16px">
                            <asp:Label ID="lblJSJE" runat="server"  /></td>

                    </tr>
                   <tr class="z2">
                        <td class="zt5">
                            索要发票：</td>
                        <td>
                            <asp:CheckBox ID="ckbfp" runat="server" onclick="fpfunc();" Enabled="False" /><div id="div_fp" style="display:none;"><asp:TextBox ID="txtfptt"  runat="server"></asp:TextBox></div>
                        </td>
                        <td class="zt5">
                            重量：</td>
                        <td>
                            <asp:Label ID="lblWeight" runat="server" Text=""></asp:Label><span style="display:none;"><asp:Label ID="lblzk" runat="server" Text=""></asp:Label></span></td>

                    </tr>                       
                   
                    <tr class="z2">
                        <td rowspan="2" class="zt5">
                            担保交易：</td>
                        <td rowspan="2">
                            <asp:CheckBox ID="chkAssureDeal" runat="server" Enabled="False" />
                            </td>                    
                        <td class="zt5">
                            备注：

                        </td>
                        <td>
                            <asp:TextBox ID="txtbz" TextMode="MultiLine" runat="server" Enabled="False"></asp:TextBox>
                        </td>
                    </tr>
                </table>
        <br /></div>
        <div class="menu_bg3"><asp:Button ID="btnAddPayDocPayDetail" runat="server" CssClass="input_button3" Text="添加支付明细" OnClick="btnAddPayDocPayDetail_Click" /></div>
    <div class="juli"><asp:DataList ID="dlistPayDocPayDetail" runat="server" OnItemDataBound="dlistPayDocPayDetail_ItemDataBound" OnItemCommand="dlistPayDocPayDetail_ItemCommand" CellPadding="0">
            <HeaderTemplate>
                <table class="tb2" border="0" cellspacing="1" cellpadding="0">
                    <tr class="z1">
                        <td class="zt3" width="60">
                            删除
                        </td>
                        <td class="zt3" width="70">
                            交易类型
                        </td>
                        <td class="zt3" width="110">
                            支付方式
                        </td>
                        <td class="zt3" width="100">
                            支付金额
                        </td>
                        <td class="zt3" width="135">
                            支付日期
                        </td>
                        <td class="zt3" width="135">
                            交易号

                        </td>
                        <td class="zt3" width="135">
                            交易日期
                        </td>
                        <td class="zt3" width="135">
                            帐号
                        </td>
                        <td class="zt3">
                            备注
                        </td>
                    </tr>
                </table>
            </HeaderTemplate>
            <ItemTemplate>
                <table width="1050" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="60" align="center" class="bk_left">
                            <asp:Button ID="btnDelete" CssClass="input_button" runat="server" Text="删除" CommandName="Del" />
                        </td>
                        <td width="70" align="center" class="bk_middle">
                            <asp:DropDownList ID="dropDealType" runat="server" Width="55"  AutoPostBack="true" OnSelectedIndexChanged="DataList2_DDLCHANGE_Click" Enabled="false">
                            <asp:ListItem Text="即时到帐" Value="001"></asp:ListItem>
                            <asp:ListItem Text="担保交易" Value="002"></asp:ListItem>
                            <asp:ListItem Text="结余款" Value="003"></asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td width="110" align="center" class="bk_middle">
                            <asp:DropDownList ID="dropPayType" Width="105" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td width="100" align="center" class="bk_middle">
                            <asp:TextBox ID="txtPayAmount" CssClass="zt7" Width="60" runat="server" Text='<%# Eval("RDPD_PAYAMT")%>'></asp:TextBox>
                            <%--<asp:Button ID="btnUpdate" runat="server" Text="" CssClass="hidden" CommandName="upt" />--%>
                        </td>
                        <td width="135" align="center" class="bk_middle">
                            <asp:TextBox ID="txtPayDate" CssClass="kuandu2" Width="124" runat="server" Text='<%# Convert.ToDateTime(Eval("RDPD_PAYDATE")).ToShortDateString()%>' OnClick="setday(this)" ></asp:TextBox>
                        </td>
                        <td width="135" align="center" class="bk_middle">
                            <asp:TextBox ID="txtDealID" CssClass="kuandu2" Width="124" runat="server" Text='<%# Eval("RDPD_DEALID")%>'></asp:TextBox>
                        </td>
                        <td width="135" align="center" class="bk_middle">
                            <asp:TextBox ID="txtDealDate" CssClass="kuandu2" Width="124" runat="server" Text='<%# Convert.ToDateTime(Eval("RDPD_DEALDATE")).ToShortDateString()%>' OnClick="setday(this)"></asp:TextBox>
                        </td>
                        <td width="135" align="center" class="bk_middle">
                            <asp:TextBox ID="txtAccount" CssClass="kuandu2" Width="124" runat="server" Text='<%# Eval("RDPD_ACCOUNT")%>'></asp:TextBox>
                        </td>
                        <td align="center" class="bk_middle">
                            <asp:TextBox ID="txtNotes" CssClass="kuandu3" Width="150" runat="server" Text='<%# Eval("RDPD_NOTE")%>'></asp:TextBox>
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList></div>
        <div class="menu_bg3"><span class="jiacu">礼券支付</span></div>
        <div class="juli">
        <asp:DataList ID="dlistCoupon" runat="server">
            <HeaderTemplate>
                <table>
                    <tr>
                        <td>
                        
                        </td>
                        <td>
                            礼券号
                        </td>
                        <td>
                            礼券面值
                        </td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                    <tr>
                        <td>
                            <asp:CheckBox ID="chkCoupon" runat="server" Checked=' <%# Convert.ToString(Eval("Frozen"))=="1"?true:false %>' />
                        </td>
                        <td>
                             
                            <asp:Label ID="lblCouponCode" runat="server" Text='<%# Eval("CouponCode")%>'></asp:Label>
                        </td>
                        <td>
                             
                            <asp:Label ID="lblCouponAmount" runat="server" Text='<%# Eval("XFJE")%>'></asp:Label>
                        </td>
                    </tr>
            </ItemTemplate>
            <FooterTemplate>
             </table>
            </FooterTemplate>
        </asp:DataList>
        </div>
        
    </form></div>
</body>
</html>
